import axios from 'axios'

async function get_oss_data(url) {
  var result = {
    res: null,
    ok: true,
    err: null
  }

  var ret = await axios.get(url).catch((e) => {
    console.log(e)
    result.ok = false
    result.err = e
  })


  if (ret) {
    result.res = ret.data
  }

  return result
}

export default get_oss_data
